//
//  Regular_Radius_Image.m
//  penzer
//
//  Created by caiyc on 2018/11/5.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "Regular_Radius_Image.h"

@implementation Regular_Radius_Image

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)layoutSubviews{
    [super layoutSubviews];
    self.layer.cornerRadius = self.frame.size.width/2;
    self.layer.masksToBounds = 1;
    self.contentMode = UIViewContentModeScaleAspectFill;
}

@end
